/*
 * @lc app=leetcode.cn id=509 lang=java
 *
 * [509] 斐波那契数
 */

// @lc code=start
class Solution {
    public int fib(int N) {
        //这玩意到底有啥意义呢
        int a =0;
        int b =1;
        int c;
        while(N!=0){
            c = a+b;
            a = b;
            b = c;
            N--;
        }
        return a;
    }
}
// @lc code=end

